package com.gf.framework.dubbo.config;

import com.gf.framework.dubbo.gfhash.GFHashLoadBalance;
import org.apache.dubbo.config.spring.beans.factory.annotation.ReferenceAnnotationBeanPostProcessor;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

/**
 * @author gaofei
 * @date 2022/5/25 21:04
 */
@Configuration
public class DubboConfig {
    @Bean
    ReferenceAnnotationBeanPostProcessor referenceAnnotationBeanPostProcessor() {
        return new DubboReferenceAnnotationBeanPostProcessor();
    }


    @Bean
    GFHashLoadBalance gfHashLoadBalance() {
        return new GFHashLoadBalance();
    }
}
